<template>
	<view class="mt100 ">
		<view class="cf fz30 pd">
			群成员
		</view>
		<view class="mt50 pd">
			<view class="uuhnnxeerty yj f_b cz" v-for="(sd,idx) in gdata.users" :key="idx">
				<image :src="sd.avatar" class="yj  "></image>
			</view>
			<navigator url="CreateGroup?type=1" class="uuhnnxeerty f_b yj cz" >
				<image src="../../../static/img/sdfdfa.png" mode="widthFix" class="kjnmkrtxere cz"></image>
			</navigator>
			<view class="uuhnnxeerty f_b yj cz">
				<image src="../../../static/img/sdfdfb.png" mode="widthFix" class="kjnmkrtxere cz"></image>
			</view>
		</view>
		
		<view class="bgtmert mt50 dfgdfyyxzeer">
			<uni-list> 
				<uni-list-item title="群名称" :rightText="name" note=""  @tap='hf("/pages/user/TransportManagement/GroupName?gid="+gdata.gid+"&name="+gdata.name)'></uni-list-item>
				<uni-list-item title="群二维码" thumbs="../../../static/img/sdfdfc.png" @tap='hf("/pages/user/TransportManagement/GroupQrCode?gid="+gdata.gid+"&qrcode="+gdata.qrcode+"&name="+gdata.name+"&avatar="+gdata.avatar)'></uni-list-item>
			</uni-list>
		</view>
		

	</view>
</template>
<script>
    export default {
        data() {
            return {
				gdata:{
					gid:'',
					users:{},
					name:'',
					qrcode:"",
					avatar:""
				},
				name:''
            }
        },
        components: {

        },
        methods: {
			async getdata(id){
				let value=await this.get('/api/group/'+id)
				console.log("群组信息",value)
				if(value.code==0){ 
					this.gdata.users=value.data.users
					this.name=value.data.name
					this.gdata.name=value.data.name
					this.gdata.qrcode=value.data.qrcode
					this.gdata.avatar=value.data.avatar
					
				}
				console.log(JSON.stringify(this.gdata) )
			}
        },
		onLoad(options){
			// this.gdata.gid = options.gid
			this.gdata.gid = 8
			this.getdata(this.gdata.gid)
		},
        mounted() {

        },
    }

</script>
<style scoped>

</style>
